package com.weetop.akly.presenter;

import android.app.Activity;

import com.weetop.akly.base.mvp.BaseModel;
import com.weetop.akly.base.mvp.BaseObserver;
import com.weetop.akly.base.mvp.BasePresenter;
import com.weetop.akly.bean.SignResultBean;
import com.weetop.akly.bean.WorkGroupBean;
import com.weetop.akly.bean.WorkLogResultBean;
import com.weetop.akly.view.SignListView;
import com.weetop.akly.view.SignView;

import java.util.ArrayList;
import java.util.Map;

public class SignListPresent extends BasePresenter<SignListView> {
    public SignListPresent(SignListView baseView, Activity activity) {
        super(baseView, activity);
    }

    /**
     * 获取考勤组列表
     */
    public void getWorkGroupList(){
        addDisposable(apiServer.getWrokGroupList(), new BaseObserver<BaseModel<ArrayList<WorkGroupBean>>>(baseView) {
            @Override
            public void onSuccess(BaseModel<ArrayList<WorkGroupBean>> o) {
//                baseView.getWorkGroupListSuccess(o);
            }

            @Override
            public void onError(String msg) {
                if (baseView != null) {
                    baseView.showError(msg);
                }
            }
        });
    }

}
